package org.jeecg.modules.htxincailiao.banner.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: ht_banner
 * @Author: jeecg-boot
 * @Date:   2021-06-03
 * @Version: V1.0
 */
@Data
@TableName("ht_banner")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ht_banner对象", description="ht_banner")
public class HTBanner implements Serializable {
    private static final long serialVersionUID = 1L;

	/**ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "ID")
    private String id;
	/**分类索引*/
	@Excel(name = "分类索引", width = 15, dictTable = "ht_banner_category", dicText = "name", dicCode = "idx")
	@Dict(dictTable = "ht_banner_category", dicText = "name", dicCode = "idx")
    @ApiModelProperty(value = "分类索引")
    private Integer categoryIdx;
	/**标题*/
	@Excel(name = "标题", width = 15)
    @ApiModelProperty(value = "标题")
    private String title;
	/**轮播图（1920x300）*/
	@Excel(name = "轮播图（1920x300）", width = 15)
    @ApiModelProperty(value = "轮播图（1920x300）")
    private String cover;
	/**简介*/
	@Excel(name = "简介", width = 15)
    @ApiModelProperty(value = "简介")
    private String introduction;
	/**是否为超链接(0非，1是)*/
	@Excel(name = "是否为超链接(0非，1是)", width = 15, dicCode = "is_link")
	@Dict(dicCode = "is_link")
    @ApiModelProperty(value = "是否为超链接(0非，1是)")
    private Integer isLink;
	/**链接地址*/
	@Excel(name = "链接地址", width = 15)
    @ApiModelProperty(value = "链接地址")
    private String linkUrl;
	/**状态(0:禁用  1:启用)*/
	@Excel(name = "状态(0:禁用  1:启用)", width = 15)
    @ApiModelProperty(value = "状态(0:禁用  1:启用)")
    private Integer status;
	/**逻辑删除：1表示删除，0表示未删除。*/
	@Excel(name = "逻辑删除：1表示删除，0表示未删除。", width = 15)
    @ApiModelProperty(value = "逻辑删除：1表示删除，0表示未删除。")
    private Integer isDeleted;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


    @TableField(exist = false)
    private Integer pageNo=1;

    @TableField(exist = false)
    private Integer pageSize=10;
}
